<?php
/**
*
* @package shopBB
* @copyright (c) 2008 EXreaction, Lithium Studios
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/

if (!defined('IN_PHPBB'))
{
	exit;
}

if (isset($config['shopbb_version']))
{
	if (!defined('PHPBB_ROOT_PATH')) define('PHPBB_ROOT_PATH', $phpbb_root_path);
	if (!defined('SHOPBB_PATH')) define('SHOPBB_PATH', PHPBB_ROOT_PATH . 'shop/');
	if (!defined('PHP_EXT')) define('PHP_EXT', $phpEx);

	$user->add_lang('mods/shop_header');

	global $_SID;
	if (!$_SID && !request_var('style', ''))
	{
		$template->assign_var('U_SHOP', generate_board_url() . '/shop/');
	}
	else
	{
		$template->assign_var('U_SHOP', append_sid(SHOPBB_PATH . 'index.' . PHP_EXT));
	}
}

?>